package org.se.scut.pinterest.mina.codec.coder.cxt;

import java.util.ArrayList;
import java.util.List;

import org.apache.mina.core.buffer.IoBuffer;
import org.se.scut.pinterest.mina.codec.msg.PicturesPostMessageItem;

public class PicturesPostContext extends BaseContext {

	public PicturesPostContext() {
		super(IoBuffer.allocate(2048).setAutoExpand(true));
	}

	private String userID;
	
	private String ablumID;
	
	private String pictureTypeID;
	
	private String from;
	
	private String count;
	
	private String size;
	
	private String item_id;

	private String item_fileName;
	
	private String item_overView;
	
	private String item_numOfCollected;
	
	private String item_createTime;
	
	private String item_pictureTypeID;
	
	private String item_fileLength;
	
	private byte[] item_content;	
	
	private List<PicturesPostMessageItem> items = new ArrayList<PicturesPostMessageItem>();
	
	@Override
	public void resetData() {
		innerBuffer.clear();
		userID = "";
		ablumID = "";
		pictureTypeID = "";
		from = "";
		count = "";
		item_content = new byte[0];
		item_createTime = "";
		item_fileLength = "";
		item_fileName = "";
		item_id = "";
		item_numOfCollected = "";
		item_overView = "";
		item_pictureTypeID = "";
		items.clear();
	}

	public String getUserID() {
		return userID;
	}

	public String getAblumID() {
		return ablumID;
	}

	public String getPictureTypeID() {
		return pictureTypeID;
	}

	public String getFrom() {
		return from;
	}

	public String getCount() {
		return count;
	}

	public String getItemid() {
		return item_id;
	}

	public String getItemfileName() {
		return item_fileName;
	}

	public String getItemoverView() {
		return item_overView;
	}

	public String getItemnumOfCollected() {
		return item_numOfCollected;
	}

	public String getItemcreateTime() {
		return item_createTime;
	}

	public String getItempictureTypeID() {
		return item_pictureTypeID;
	}

	public String getItemfileLength() {
		return item_fileLength;
	}

	public byte[] getItemcontent() {
		return item_content;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public void setAblumID(String ablumID) {
		this.ablumID = ablumID;
	}

	public void setPictureTypeID(String pictureTypeID) {
		this.pictureTypeID = pictureTypeID;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public void setCount(String count) {
		this.count = count;
	}

	public void setItemid(String item_id) {
		this.item_id = item_id;
	}

	public void setItemfileName(String item_fileName) {
		this.item_fileName = item_fileName;
	}

	public void setItemoverView(String item_overView) {
		this.item_overView = item_overView;
	}

	public void setItemnumOfCollected(String item_numOfCollected) {
		this.item_numOfCollected = item_numOfCollected;
	}

	public void setItemcreateTime(String item_createTime) {
		this.item_createTime = item_createTime;
	}

	public void setItempictureTypeID(String item_pictureTypeID) {
		this.item_pictureTypeID = item_pictureTypeID;
	}

	public void setItemfileLength(String item_fileLength) {
		this.item_fileLength = item_fileLength;
	}

	public void setItemcontent(byte[] item_content) {
		this.item_content = item_content;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public List<PicturesPostMessageItem> getItems() {
		return items;
	}

	public void setItems(List<PicturesPostMessageItem> items) {
		this.items = items;
	}


}
